<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>P40-40-课后作业</title>
    <script>
        var yourName = prompt('请输入您的名字：');
        var yourAge = prompt('请输入您的年龄：');
        var yourSex = prompt('请输入您的性别：');
        alert('您的姓名是：' + yourName + '\n' + '您的年龄是：' + yourAge + '\n' + '您的性别是：' + yourSex);
    </script>
</head>

<body>

</body>

</html>